package com.xingceng.stock.config;

import com.xingceng.stock.cache.Cache;
import com.xingceng.stock.cache.RedisCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @Author:zhengbowen
 * @Date: 2025/11/08 16:46
 * @Description:
 */
@Configuration
public class CacheConfig {

    @Bean
    public Cache cache(StringRedisTemplate redis) {
        return new RedisCache(redis);
    }
}
